﻿using furion.blog.Domain.Shared.Dto.Wx.MiniProgram;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Application.Contracts
{
    /// <summary>
    /// 微信服务类
    /// </summary>
    public interface IWxService
    {

        /// <summary>
        /// 通过code获取会员的openid等信息(小程序)
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        Task<Code2SessionDto> Code2Session(string code);

        /// <summary>
        /// 小程序发送信息给会员
        /// https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/customer-message/customerServiceMessage.send.html
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<bool> SendMsgToMember(SendMsgToMemberDto dto);

    }
}
